// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** batchAddVipCode POST /api/vipCode/batchAdd/vipCode */
export async function batchAddVipCodeUsingPost(
  body: API.VipCodeBatchAddRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/vipCode/batchAdd/vipCode', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** listVipCodeByPage POST /api/vipCode/list/page */
export async function listVipCodeByPageUsingPost(
  body: API.VipCodeQueryRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageVipCode_>('/api/vipCode/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
